<template>
  <div class="layout-container flex flex-v">
    <div class="main-head">
      <van-nav-bar
        fixed
        title="发布信息"
        left-text="返回"
        right-text="发布须知"
        left-arrow
      />
    </div>
    <div class="main-box">
      <!--提示语-->
      <div class="issue-tip-box pd15">
        <p class="issue-tip-content">
          免责声明:平台发布的所有信息(收费,免费);平台只负责发布,展示,与平台本身无关,平台不负任何责任.
        </p>
      </div>
      <!--商家入驻-->
      <div class="issue-enter-box van-hairline--top-bottom flex flex-align-center pd15">
        <img src="" alt="" class="enter-img"/>
        <div class="enter-item flex flex-v flex-1">
          <h4 class="enter-title">我是商家,入驻黑猫吃喝玩乐</h4>
          <span class="enter-sub">超低成本,本地宣传,简单有效,方便快捷</span>
        </div>
        <div class="enter-icon flex flex-align-center flex-pack-center">›</div>
      </div>
      <!--类型选择-->
      <div class="enter-type-choose">
        <!--头部-->
        <div class="type-head flex flex-pack-center flex-align-center">
          <div class="van-hairline--top type-line"></div>
          <span class="type-title">请选择您要发布的栏目</span>
          <div class="van-hairline--top type-line"></div>
        </div>
        <!--内容体-->
        <div class="type-content">
          <div class="column__box flex">
            <div class="column__item flex flex-align-center flex-pack-center flex-v" @click="testFlag">
              <img src="/static/images/index/1703201144118593716.png" alt="" class="column__img"/>
              <span class="column__tip">招聘求职</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201142220514442.png" alt="" class="column__img"/>
              <span class="column__tip">房产信息</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201142348351382.png" alt="" class="column__img"/>
              <span class="column__tip">二手闲置</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201142460582254.png" alt="" class="column__img"/>
              <span class="column__tip">车辆买卖</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201142589141878.png" alt="" class="column__img"/>
              <span class="column__tip">宠物服务</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201143207646362.png" alt="" class="column__img"/>
              <span class="column__tip">票务/优惠</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201143332953908.png" alt="" class="column__img"/>
              <span class="column__tip">同城活动</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201143539817320.png" alt="" class="column__img"/>
              <span class="column__tip">技能交换</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201144247456086.png" alt="" class="column__img"/>
              <span class="column__tip">生活服务</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201144414903922.png" alt="" class="column__img"/>
              <span class="column__tip">维修服务</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201144533609652.png" alt="" class="column__img"/>
              <span class="column__tip">装修建材</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201145408344678.png" alt="" class="column__img"/>
              <span class="column__tip">车辆服务</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201145559717678.png" alt="" class="column__img"/>
              <span class="column__tip">婚纱摄影</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201146065034222.png" alt="" class="column__img"/>
              <span class="column__tip">休闲娱乐</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201146150281636.png" alt="" class="column__img"/>
              <span class="column__tip">商务娱乐</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201148009589890.png" alt="" class="column__img"/>
              <span class="column__tip">教育培训</span>
            </div>
            <div class="column__item flex flex-align-center flex-pack-center flex-v">
              <img src="/static/images/index/1703201143332953908.png" alt="" class="column__img"/>
              <span class="column__tip">美食</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!--种类目选择-->
    <van-popup v-model="typeShow"  position="bottom">
      <van-picker
        show-toolbar
        title="请选择类目"
        :columns="columns"
        @cancel="onCancel"
        @confirm="onConfirm"
      />
    </van-popup>
  </div>
</template>

<script>
import {NavBar, Picker, Popup, Toast} from 'vant'

export default {
  name: 'issueNotice',
  components: {
    [NavBar.name]: NavBar,
    [Picker.name]: Picker,
    [Popup.name]: Popup,
    [Toast.name]: Toast
  },
  data () {
    return {
      typeShow: false,
      columns: ['杭州', '宁波', '温州', '嘉兴', '湖州']
    }
  },
  methods: {
    testFlag () {
      this.typeShow = !this.typeShow
    },
    onConfirm (value, index) {
      Toast(`当前值：${value}, 当前索引：${index}`)
      this.typeShow = false
    },
    onCancel () {
      this.typeShow = false
    }
  }
}
</script>

<style scoped lang="less">
  // 提示语
  .issue-tip-box {
    .issue-tip-content {
      padding: 15px;
      background: #f0f9ff;
      margin: 0;
      color: #666;
      font-size: 14px;
      line-height: 25px;
      text-align: justify;
    }
  }

  // 商家入驻
  .issue-enter-box {
    .enter-img {
      width: 60px;
      height: 60px;
      border: 1px solid red;
    }

    .enter-item {
      padding-left: 15px;

      .enter-title {
        margin: 0;
        padding: 0;
        font-size: 18px;
        font-weight: 400;
        line-height: 25px;
        color: #6a6a6a;
      }

      .enter-sub {
        margin-top: 8px;
        font-size: 12px;
        color: #9c9c9c;
      }
    }

    .enter-icon {
      width: 30px;
      height: 30px;
      color: #9c9c9c;
    }
  }

  // 类型选择
  .enter-type-choose {
    .type-line {
      width: 50px;
    }

    .type-head {
      padding: 20px 15px;

      .type-title {
        font-size: 16px;
        color: #9c9c9c;
        display: inline-block;
        padding: 0px 15px;
      }
    }

    .type-content {
      padding: 15px 0;
      box-shadow: 0px 4px 8px 0px rgba(60, 124, 243, 0.5);

      .column__box {
        flex-wrap: wrap;

        .column__item {
          width: 75px;

          .column__img {
            width: 40px;
            height: 40px;
          }

          .column__tip {
            display: inline-block;
            height: 30px;
            line-height: 30px;
            font-size: 12px;
            color: #6F6F6F;
          }
        }
      }
    }
  }
</style>
